package com.jg.myproject.api;


import com.jg.myproject.api.bean.BaseEntity;
import com.jg.myproject.api.bean.CommonRequestBean;
import com.jg.myproject.api.bean.UserBean;
import com.jg.myproject.api.bean.reponse.CommonReponseBean;

import java.util.List;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;
import retrofit2.http.Query;

/**
 * Created by zhengchengrong on 2017/9/1.
 */

public interface JgService {

    @POST("app/toLogin")
    Observable<BaseEntity<CommonReponseBean>> toLogin(@Body UserBean userBean);

    @POST("app/monitor/gcMonitorPartList")
    Observable<BaseEntity<CommonReponseBean>> getProjectList(@Body CommonRequestBean commonRequestBean);

    @POST("app/monitor/projectInfo")
    Observable<BaseEntity<CommonReponseBean>> getProjectInfo(@Body CommonRequestBean commonRequestBean);

    @POST("app/monitor/deviceInfoList")
    Observable<BaseEntity<CommonReponseBean>> deviceInfoList(@Body CommonRequestBean commonRequestBean);

    @POST("app/monitor/sectionMonitorList")
    Observable<BaseEntity<CommonReponseBean>> sectionMonitorList(@Body CommonRequestBean commonRequestBean);


    @POST("app/monitor/monitorPointDistribution")
    Observable<BaseEntity<CommonReponseBean>> monitorPointDistribution(@Body CommonRequestBean commonRequestBean);


    @POST("app/monitor/realTimeDataForGraph")
    Observable<BaseEntity<CommonReponseBean>> realTimeDataForGraph(@Body CommonRequestBean commonRequestBean);
    @POST("app/monitor/realTimeData")
    Observable<BaseEntity<CommonReponseBean>> realTimeData(@Body CommonRequestBean commonRequestBean);

    @POST("app/monitor/realTimeSectionData")
    Observable<BaseEntity<CommonReponseBean>> realTimeSectionData(@Body CommonRequestBean commonRequestBean);



    @POST("app/monitor/monitorDataForGraph")
    Observable<BaseEntity<CommonReponseBean>> monitorDataForGraph(@Body CommonRequestBean commonRequestBean);
    @POST("app/monitor/monitorData")
    Observable<BaseEntity<CommonReponseBean>> monitorData(@Body CommonRequestBean commonRequestBean);
    @POST("app/monitor/monitorSectionData")
    Observable<BaseEntity<CommonReponseBean>> monitorSectionData(@Body CommonRequestBean commonRequestBean);



}
